package model

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Account string `gorm:"type:varchar(20);comment:昵称"`
	Mobile  string `gorm:"type:varchar(20);comment:电话号码"`
	Email   string `gorm:"type:varchar(20);comment:邮箱"`
	Status  int    `gorm:"type:int(1);comment:1正常 2封禁"`
}
type Friend struct {
	gorm.Model
	UserId   int    `gorm:"type:int;comment:用户ID"`
	FriendId int    `gorm:"type:int;comment:好友ID"`
	Remarks  string `gorm:"type:text;comment:备注"`
}
type FriendAdd struct {
	gorm.Model
	UserId       int    `gorm:"type:int;comment:添加ID"`
	ToId         int    `gorm:"type:int;comment:被添加ID"`
	Introduction string `gorm:"type:text;comment:请求介绍"`
	Status       int    `gorm:"type:int;comment:1未处理 2同意 3拒绝"`
}
type Message struct {
	gorm.Model
	UserId  int    `gorm:"type:int;comment:发送者ID"`
	DistId  int    `gorm:"type:int;comment:接收ID"`
	Content string `gorm:"type:text;comment:聊天内容"`
}
